package com.springboot.cms.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by wangxianhong on 2017/6/30.
 * 文章表
 */
@Entity
@Table(name = "tb_article")
public class Article implements Serializable{

    @Id
    private String id;//文章id

    @Column
    private String columnId;//专栏id

    @Column
    private String cateId;//分类id


    @Column
    private String title;//文章标题

    @Column
    private String summary;//文章简介

    @Column
    private  Boolean status;//文章状态 true 可用 false 不可用

    @Column
    private String thumbnail;//文章缩略图  格式JsonArray  ['a.jpg','b.jpg','c,jpg']

    @Column
    private Long createTime;//创建时间

    @Lob
    private String content;//文章正文



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getColumnId() {
        return columnId;
    }

    public void setColumnId(String columnId) {
        this.columnId = columnId;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
